<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>basic_seq_packet_socket::basic_seq_packet_socket</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket">
<link rel="prev" href="available/overload2.html" title="basic_seq_packet_socket::available (2 of 2 overloads)">
<link rel="next" href="basic_seq_packet_socket/overload1.html" title="basic_seq_packet_socket::basic_seq_packet_socket (1 of 10 overloads)">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="available/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_seq_packet_socket.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="basic_seq_packet_socket/overload1.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_asio.reference.basic_seq_packet_socket.basic_seq_packet_socket"></a><a class="link" href="basic_seq_packet_socket.html" title="basic_seq_packet_socket::basic_seq_packet_socket">basic_seq_packet_socket::basic_seq_packet_socket</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="boost_asio.indexterm.basic_seq_packet_socket.basic_seq_packet_socket"></a> 
Construct
          a <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a> without
          opening it.
        </p>
<pre class="programlisting"><span class="keyword">explicit</span> <a class="link" href="basic_seq_packet_socket/overload1.html" title="basic_seq_packet_socket::basic_seq_packet_socket (1 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="keyword">const</span> <span class="identifier">executor_type</span> <span class="special">&amp;</span> <span class="identifier">ex</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload1.html" title="basic_seq_packet_socket::basic_seq_packet_socket (1 of 10 overloads)">more...</a></em></span>

<span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">ExecutionContext</span><span class="special">&gt;</span>
<span class="keyword">explicit</span> <a class="link" href="basic_seq_packet_socket/overload2.html" title="basic_seq_packet_socket::basic_seq_packet_socket (2 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> <span class="identifier">context</span><span class="special">,</span>
    <span class="identifier">constraint_t</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;,</span> <span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;::</span><span class="identifier">value</span> <span class="special">&gt;</span>  <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload2.html" title="basic_seq_packet_socket::basic_seq_packet_socket (2 of 10 overloads)">more...</a></em></span>
</pre>
<p>
          Construct and open a <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a>.
        </p>
<pre class="programlisting"><a class="link" href="basic_seq_packet_socket/overload3.html" title="basic_seq_packet_socket::basic_seq_packet_socket (3 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="keyword">const</span> <span class="identifier">executor_type</span> <span class="special">&amp;</span> <span class="identifier">ex</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">protocol_type</span> <span class="special">&amp;</span> <span class="identifier">protocol</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload3.html" title="basic_seq_packet_socket::basic_seq_packet_socket (3 of 10 overloads)">more...</a></em></span>

<span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">ExecutionContext</span><span class="special">&gt;</span>
<a class="link" href="basic_seq_packet_socket/overload4.html" title="basic_seq_packet_socket::basic_seq_packet_socket (4 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> <span class="identifier">context</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">protocol_type</span> <span class="special">&amp;</span> <span class="identifier">protocol</span><span class="special">,</span>
    <span class="identifier">constraint_t</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;,</span> <span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">defaulted_constraint</span> <span class="special">&gt;</span>  <span class="special">=</span> <span class="identifier">defaulted_constraint</span><span class="special">());</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload4.html" title="basic_seq_packet_socket::basic_seq_packet_socket (4 of 10 overloads)">more...</a></em></span>
</pre>
<p>
          Construct a <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a>, opening
          it and binding it to the given local endpoint.
        </p>
<pre class="programlisting"><a class="link" href="basic_seq_packet_socket/overload5.html" title="basic_seq_packet_socket::basic_seq_packet_socket (5 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="keyword">const</span> <span class="identifier">executor_type</span> <span class="special">&amp;</span> <span class="identifier">ex</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">endpoint_type</span> <span class="special">&amp;</span> <span class="identifier">endpoint</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload5.html" title="basic_seq_packet_socket::basic_seq_packet_socket (5 of 10 overloads)">more...</a></em></span>

<span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">ExecutionContext</span><span class="special">&gt;</span>
<a class="link" href="basic_seq_packet_socket/overload6.html" title="basic_seq_packet_socket::basic_seq_packet_socket (6 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> <span class="identifier">context</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">endpoint_type</span> <span class="special">&amp;</span> <span class="identifier">endpoint</span><span class="special">,</span>
    <span class="identifier">constraint_t</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;,</span> <span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;::</span><span class="identifier">value</span> <span class="special">&gt;</span>  <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload6.html" title="basic_seq_packet_socket::basic_seq_packet_socket (6 of 10 overloads)">more...</a></em></span>
</pre>
<p>
          Construct a <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a> on an
          existing native socket.
        </p>
<pre class="programlisting"><a class="link" href="basic_seq_packet_socket/overload7.html" title="basic_seq_packet_socket::basic_seq_packet_socket (7 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="keyword">const</span> <span class="identifier">executor_type</span> <span class="special">&amp;</span> <span class="identifier">ex</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">protocol_type</span> <span class="special">&amp;</span> <span class="identifier">protocol</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">native_handle_type</span> <span class="special">&amp;</span> <span class="identifier">native_socket</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload7.html" title="basic_seq_packet_socket::basic_seq_packet_socket (7 of 10 overloads)">more...</a></em></span>

<span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">ExecutionContext</span><span class="special">&gt;</span>
<a class="link" href="basic_seq_packet_socket/overload8.html" title="basic_seq_packet_socket::basic_seq_packet_socket (8 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> <span class="identifier">context</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">protocol_type</span> <span class="special">&amp;</span> <span class="identifier">protocol</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">native_handle_type</span> <span class="special">&amp;</span> <span class="identifier">native_socket</span><span class="special">,</span>
    <span class="identifier">constraint_t</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;,</span> <span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;::</span><span class="identifier">value</span> <span class="special">&gt;</span>  <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload8.html" title="basic_seq_packet_socket::basic_seq_packet_socket (8 of 10 overloads)">more...</a></em></span>
</pre>
<p>
          Move-construct a <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a> from another.
        </p>
<pre class="programlisting"><a class="link" href="basic_seq_packet_socket/overload9.html" title="basic_seq_packet_socket::basic_seq_packet_socket (9 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="identifier">basic_seq_packet_socket</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload9.html" title="basic_seq_packet_socket::basic_seq_packet_socket (9 of 10 overloads)">more...</a></em></span>
</pre>
<p>
          Move-construct a <a class="link" href="../basic_seq_packet_socket.html" title="basic_seq_packet_socket"><code class="computeroutput"><span class="identifier">basic_seq_packet_socket</span></code></a> from a
          socket of another protocol type.
        </p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <a class="link" href="../Protocol.html" title="Protocol requirements">Protocol1</a><span class="special">,</span>
    <span class="keyword">typename</span> <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a><span class="special">&gt;</span>
<a class="link" href="basic_seq_packet_socket/overload10.html" title="basic_seq_packet_socket::basic_seq_packet_socket (10 of 10 overloads)">basic_seq_packet_socket</a><span class="special">(</span>
    <span class="identifier">basic_seq_packet_socket</span><span class="special">&lt;</span> <span class="identifier">Protocol1</span><span class="special">,</span> <span class="identifier">Executor1</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">,</span>
    <span class="identifier">constraint_t</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">Protocol1</span><span class="special">,</span> <span class="identifier">Protocol</span> <span class="special">&gt;::</span><span class="identifier">value</span> <span class="special">&amp;&amp;</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">Executor1</span><span class="special">,</span> <span class="identifier">Executor</span> <span class="special">&gt;::</span><span class="identifier">value</span> <span class="special">&gt;</span>  <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
  <span class="emphasis"><em>» <a class="link" href="basic_seq_packet_socket/overload10.html" title="basic_seq_packet_socket::basic_seq_packet_socket (10 of 10 overloads)">more...</a></em></span>
</pre>
</div>
<div class="copyright-footer">Copyright © 2003-2024 Christopher M. Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="available/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_seq_packet_socket.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="basic_seq_packet_socket/overload1.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
